package cn.itcast.n3;

import lombok.extern.slf4j.Slf4j;

/**
 * className: TestMultiThread
 * description:
 * date: 2023/2/10 0010-PM 7:31:29
 * <p>
 * project: concurrent
 * package: cn.itcast.n3
 * email: 1085844536@qq.com
 * version:
 *
 * @author WangGuojian
 */
@Slf4j(topic = "c.TestMultiThread")
public class TestMultiThread {

    public static void main(String[] args) {
        new Thread(() -> {
            while (true) {
                log.debug("running");
            }
        }, "t1").start();

        new Thread(() -> {
            log.debug("running");
        }, "t2").start();
    }
}
